const EventEmitter = require('events')

class MyEventEmitter extends EventEmitter { }

const event = new MyEventEmitter()

event.on('play', (value) => {
    console.log(value)
})

event.on('play1', (value) => {
    console.log(value)
})

event.emit('play', 'movie')
event.emit('play1', 'movie1')